{if $objMenus}
    <h1>Products</h1>
    {foreach $objMenus as $key=>$objMenu}
        {if is_object($objMenu)}
        <h2 style="padding-left:12px;">
            <a 
                href="{$objMenu->getUrl('product')}" 
                rel="ddsubmenuside{$key}" 
                id="c{$key}p" 
                {if $objMenu->getField('id') == $id} 
                    class='active'
                {/if} 
                style="font-size: 13px;"
            >
                {$objMenu->getFieldLang('name')}
            </a>
        </h2>
            {if is_object($productcategory) && is_object($objCategory)}
            {assign var=objSubNewsCategories value=$productcategory->getSubCategory($objMenu->getField('id'))}
            <div id="pchilds" {if $objMenu->getField('id') == $id || $objCategory->getField('cid') == $objMenu->getField('id')}{else}style="display: none;"{/if} class="innerlinks">
                <ul>
                    {foreach $objSubNewsCategories as $objSubNewsCategorie}
                        {if is_object($objSubNewsCategorie)}
                            <li>
                                <a 
                                    href="{$objSubNewsCategorie->getUrl('productsub')}"
                                    {if $objSubNewsCategorie->getField('id') == $id} 
                                        class='active'
                                    {/if} 
                                >
                                    {$objSubNewsCategorie->getFieldLang('name')}
                                </a>
                            </li>
                        {/if}
                    {/foreach}
                </ul>
            </div>
            {/if}
        {/if}
    {/foreach}
{/if}